<!--
 * @Author: Qiao 2044014202@qq.com
 * @Date: 2022-11-30 10:27:49       
 * @LastEditors: Qiao 2044014202@qq.com
 * @LastEditTime: 2022-12-07 19:24:01
 * @FilePath: \vol\src\views\HeaderNav\Framework.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="farmework">
        <div class="h-6 header" />
        <el-menu class="el-menu-demo" :default-active="activeIndex" mode="horizontal"
            style=" height: 55px;justify-content: space-around;" background-color="black" text-color="#ccc"
            active-text-color="white">
            <el-menu-item index="1" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/home')">返回首页</el-menu-item>
            <el-menu-item index="2" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/startup')">项目启动与发布</el-menu-item>
            <el-menu-item index="3" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/code')">代码生成</el-menu-item>
            <el-menu-item index="4" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/api')">组件api</el-menu-item>
            <el-menu-item index="5" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/before')">前端开发</el-menu-item>
            <el-menu-item index="6" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/after')">后台开发</el-menu-item>
            <el-menu-item index="7" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/mobile')">移动端(uni-app)</el-menu-item>
            <el-menu-item index="8" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/questions')">常见问题</el-menu-item>
            <el-menu-item index="9" style="color:#ccc;font-size:16px;" class="a"
                @click="router.push('/update')">更新记录</el-menu-item>
        </el-menu>
    </div>
    <router-view></router-view>
</template>
<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
let router = useRouter()
let activeIndex = ref('2')
</script>
<style scoped lang='scss'>
.farmework {
    width: 100%;
    height: 60px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2;
}
</style>
